package com.lemon.bean.stageBean;

import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.layout.*;

import static com.lemon.beanManager.BeanContainer.beanFactory;

public class MainViewInitializer {

    @FXML
    private Button allSelect;
    @FXML
    private TextField dirLocationStr;
    @FXML
    private AnchorPane imageViewOuter;
    @FXML
    private Button copyButton;
    @FXML
    private Button pasteButton;
    @FXML
    private ScrollPane scroll;
    @FXML
    private Label selectInfo;
    @FXML
    private TextField searchTextField;
    @FXML
    private Button close;
    @FXML
    private Button max;
    @FXML
    private Button min;
    @FXML
    private Button search;
    @FXML
    private TreeView<String> treeView;
    @FXML
    private FlowPane imgViewBox;
    //初始化
    public void initialize() {

        beanFactory.setBean("mainAllSelect",allSelect);
        beanFactory.setBean("mainDirLocationStr",dirLocationStr);
        beanFactory.setBean("imageViewOuter",imageViewOuter);
        beanFactory.setBean("mainCopyButton",copyButton);
        beanFactory.setBean("mainPasteButton",pasteButton);
        beanFactory.setBean("mainScroll",scroll);
        beanFactory.setBean("mainSelectInfo",selectInfo);
        beanFactory.setBean("mainSearchTextField",searchTextField);
        beanFactory.setBean("mainClose",close);
        beanFactory.setBean("mainMax",max);
        beanFactory.setBean("mainMin",min);
        beanFactory.setBean("mainSearch",search);
        beanFactory.setBean("mainTreeView",treeView);
        beanFactory.setBean("mainImgViewBox",imgViewBox);

    }
}
